package com.ruoyi.framework.constant;

public enum HttpStatusEnum implements ExceptionInterface {

    TOKENNULL(1003, "没有token"),
    TOKENERROR(1004, "token无效"),
    TOKEN_TIME_OUT_OR_NULL(1004, "token过期"),
    INVITATIONCODE_ERROR(100001, "邀请码无效或已绑定邀请码");

    /**
     * 结果码
     */
    private int resultCode;

    /**
     * 结果描述
     */
    private String resultMessage;

    HttpStatusEnum(int resultCode, String resultMessage) {
        this.resultCode = resultCode;
        this.resultMessage = resultMessage;
    }

    @Override
    public int getResultCode() {
        return resultCode;
    }

    @Override
    public String getResultMessage() {
        return resultMessage;
    }
}
